package com.cssl.domain;

import cn.hutool.core.util.DesensitizedUtil;
import com.cssl.annotation.Sensitive;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Dtsorder implements Serializable {
    private Integer id;
    private Integer userId;
    private String orderSn;
    private Integer orderStatus;
    @Sensitive(DesensitizedUtil.DesensitizedType.CHINESE_NAME)
    private String consignee;
    @Sensitive(DesensitizedUtil.DesensitizedType.MOBILE_PHONE)
    private String mobile;
    @Sensitive(DesensitizedUtil.DesensitizedType.ADDRESS)
    private String address;
    private Double goodsPrice;
    private Double freightPrice;
    private Double couponPrice;
    private Double integralPrice;
    private Double groupOnPrice;
    private double orderPrice;
    private double actualPrice;
    private String payId;
    private Date payTime;
    private String shipChannel;
    private Date shipTime;
    private Date confirmTime;
    private String shipSn;
    private Integer comments;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private Date addTime;
    private Date updateTime;
    private Integer deleted;
    private Double settlementMoney;
    private Integer settlementStatus;
    private Integer freightType;
    private Integer shareUserId;
    private String fetchCode;


    public Dtsorder(Integer id, Integer userId, String orderSn, Integer orderStatus, String consignee, String mobile, String address, Double goodsPrice, Double freightPrice, Double couponPrice, Double integralPrice, Double groupOnPrice, double orderPrice, double actualPrice, String payId, Date payTime, String shipChannel, Date shipTime, Date confirmTime, String shipSn, Integer comments, Date endTime, Date addTime, Date updateTime, Integer deleted, Double settlementMoney, Integer settlementStatus, Integer freightType, Integer shareUserId, String fetchCode) {
        this.id = id;
        this.userId = userId;
        this.orderSn = orderSn;
        this.orderStatus = orderStatus;
        this.consignee = consignee;
        this.mobile = mobile;
        this.address = address;
        this.goodsPrice = goodsPrice;
        this.freightPrice = freightPrice;
        this.couponPrice = couponPrice;
        this.integralPrice = integralPrice;
        this.groupOnPrice = groupOnPrice;
        this.orderPrice = orderPrice;
        this.actualPrice = actualPrice;
        this.payId = payId;
        this.payTime = payTime;
        this.shipChannel = shipChannel;
        this.shipTime = shipTime;
        this.confirmTime = confirmTime;
        this.shipSn = shipSn;
        this.comments = comments;
        this.endTime = endTime;
        this.addTime = addTime;
        this.updateTime = updateTime;
        this.deleted = deleted;
        this.settlementMoney = settlementMoney;
        this.settlementStatus = settlementStatus;
        this.freightType = freightType;
        this.shareUserId = shareUserId;
        this.fetchCode = fetchCode;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Dtsorder() {

    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getConsignee() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee = consignee;
    }

    public Double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(Double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public Double getFreightPrice() {
        return freightPrice;
    }

    public void setFreightPrice(Double freightPrice) {
        this.freightPrice = freightPrice;
    }

    public Double getCouponPrice() {
        return couponPrice;
    }

    public void setCouponPrice(Double couponPrice) {
        this.couponPrice = couponPrice;
    }

    public Double getIntegralPrice() {
        return integralPrice;
    }

    public void setIntegralPrice(Double integralPrice) {
        this.integralPrice = integralPrice;
    }

    public Double getGroupOnPrice() {
        return groupOnPrice;
    }

    public void setGroupOnPrice(Double groupOnPrice) {
        this.groupOnPrice = groupOnPrice;
    }

    public Date getConfirmTime() {
        return confirmTime;
    }

    public void setConfirmTime(Date confirmTime) {
        this.confirmTime = confirmTime;
    }

    public Integer getComments() {
        return comments;
    }

    public void setComments(Integer comments) {
        this.comments = comments;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Double getSettlementMoney() {
        return settlementMoney;
    }

    public void setSettlementMoney(Double settlementMoney) {
        this.settlementMoney = settlementMoney;
    }

    public Integer getSettlementStatus() {
        return settlementStatus;
    }

    public void setSettlementStatus(Integer settlementStatus) {
        this.settlementStatus = settlementStatus;
    }

    public Integer getFreightType() {
        return freightType;
    }

    public void setFreightType(Integer freightType) {
        this.freightType = freightType;
    }

    public Integer getShareUserId() {
        return shareUserId;
    }

    public void setShareUserId(Integer shareUserId) {
        this.shareUserId = shareUserId;
    }

    public String getFetchCode() {
        return fetchCode;
    }

    public void setFetchCode(String fetchCode) {
        this.fetchCode = fetchCode;
    }

    @Override
    public String toString() {
        return "Dtsorder{" +
                "userId=" + userId +
                ", orderSn='" + orderSn + '\'' +
                ", orderStatus=" + orderStatus +
                ", orderPrice=" + orderPrice +
                ", actualPrice=" + actualPrice +
                ", payId='" + payId + '\'' +
                ", payTime=" + payTime +
                ", shipChannel='" + shipChannel + '\'' +
                ", shipTime=" + shipTime +
                ", shipSn='" + shipSn + '\'' +
                '}';
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public double getActualPrice() {
        return actualPrice;
    }

    public void setActualPrice(double actualPrice) {
        this.actualPrice = actualPrice;
    }

    public String getPayId() {
        return payId;
    }

    public void setPayId(String payId) {
        this.payId = payId;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getShipChannel() {
        return shipChannel;
    }

    public void setShipChannel(String shipChannel) {
        this.shipChannel = shipChannel;
    }

    public Date getShipTime() {
        return shipTime;
    }

    public void setShipTime(Date shipTime) {
        this.shipTime = shipTime;
    }

    public String getShipSn() {
        return shipSn;
    }

    public void setShipSn(String shipSn) {
        this.shipSn = shipSn;
    }
}
